<%-- 
    Document   : FormSelector
    Created on : 14/11/2011
    Author     : Draggoth
--%>

<%@page import="control.*"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%
    String ffrrmm = null;
    String operacion = null;
    String op_status = null;
    
    FormBeam session_frm = null;

    ffrrmm = request.getParameter("ffrrmm");
    operacion = (String)session.getAttribute("operacion");
    op_status = (String)session.getAttribute("op_status");

    session_frm = (FormBeam)session.getAttribute("form" + ffrrmm);

    if( session_frm != null && session_frm.getGuardado() ) {
        if(operacion.equals("nuevas")) {
            op_status = "actualizar";
        }
        else if(operacion.equals("incompletas")) {
            op_status = "actualizar";
        }
        else if(operacion.equals("completas")) {
            op_status = "observar";
        }
    }
    else {
        op_status = "inicio";
    }

    session.setAttribute("op_status", op_status);

    session.removeAttribute("op_msg");

    response.sendRedirect("formulario" + ffrrmm + ".jsp");
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Procesando...</title>
    </head>
    <body>

    </body>
</html>